import request from '../utils/request'

// 获取用户订阅设置
export function getUserSubscribe(userId) {
  return request({
    url: `/api/user-subscribes/${userId}`,
    method: 'get'
  })
}

// 创建用户订阅设置
export function createUserSubscribe(data) {
  return request({
    url: '/api/user-subscribes',
    method: 'post',
    data
  })
}

// 更新用户订阅设置
export function updateUserSubscribe(userId, data) {
  return request({
    url: `/api/user-subscribes/${userId}`,
    method: 'put',
    data
  })
}

// 删除用户订阅设置
export function deleteUserSubscribe(userId) {
  return request({
    url: `/api/user-subscribes/${userId}`,
    method: 'delete'
  })
}